function $(id){
	return document.getElementById(id);
}
function getCookie(name){
    var strcookie = document.cookie;
    var arrcookie = strcookie.split(";");
    for ( var i = 0; i < arrcookie.length; i++) {
        var arr = arrcookie[i].split("=");
        if (arr[0] == name){
            return arr[1];
        }
    }
    return null;
}
function pageChange(obj){
	
	var pageList=document.getElementById("pageList");
	var spanPageN=pageList.getElementsByTagName("li");
	
	for(var i=1;i<spanPageN.length-1;i++){
		spanPageN[i].removeAttribute("class");
	}			
	var a=event.srcElement;	    	
		var li=a.parentElement;	   			   			   		
		li.setAttribute("class","active");
		for(var i=1;i<spanPageN.length-1;i++){
	}  	
}
function clearActive(spanPageN){		
}	